﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<QuizAppMvc2.QuestaoMultipla>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Details
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Details</h2>

    <fieldset>
        <legend>Fields</legend>
        
        <div class="display-label">Texto</div>
        <div class="display-field"><%: Model.Texto %></div>
        
        <div class="display-label">Gabarito</div>
        <div class="display-field"><%: Model.Gabarito %></div>
        
        <div class="display-label">idQuestao</div>
        <div class="display-field"><%: Model.idQuestao %></div>
        
        <div class="display-label">DataCriacao</div>
        <div class="display-field"><%: String.Format("{0:g}", Model.DataCriacao) %></div>
        
      
        <div class="display-label">idMateria</div>
        <div class="display-field"><%: Model.Materia.Nome %></div>
        
        <div class="display-label">idTopico</div>
        <div class="display-field"><%: Model.Topico.Nome %></div>
        
        <div class="display-label">idSubTopico</div>
        <div class="display-field"><%: Model.SubTopico.Nome%></div>

        <%
            foreach (QuizAppMvc2.QuestaoAlternativa a in Model.QuestaoAlternativas)
            {
            
             %>
             <%: a.Alternativa %>) 
             <%: a.Texto %> <br />

             <% } %>
        
        
    </fieldset>
    <p>

        <%: Html.ActionLink("Edit", "Edit", new { id=Model.idQuestao }) %> |
        <%: Html.ActionLink("Back to List", "Index") %>
    </p>

</asp:Content>

